using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace WPCoco.Tasks
{
    public class Move : InstantTask<IAffine>
    {
        public Move(Vector2 position)
        {
            Position = position;
        }

        Vector2 position;

        public Vector2 Position
        {
            get { return position; }
            set { position = value; }
        }

        public override void InitializeWithTarget(IAffine target)
        {
            
        }

        public override void UpdateWithTarget(IAffine target, float time)
        {
            target.Position = position;
        }

        public override Task Clone()
        {
            return new Move(position);
        }
    }
}
